package ae.pcfc.etks.online.itworx.ehs.web.enums;

import java.util.HashMap;
import java.util.Map;

public enum FNPRequestStatus {

	PAYMENT_CONFIRMED("CLOSED"),
	PAYMENT_CANCELLED("CANCELLED");
	
	private String statusName;
	
	private static Map<String, FNPRequestStatus> statusMap = new HashMap<String, FNPRequestStatus>();
	static {	
		statusMap.put(PAYMENT_CONFIRMED.getStatusName(), FNPRequestStatus.PAYMENT_CONFIRMED);
		statusMap.put(PAYMENT_CANCELLED.getStatusName(), FNPRequestStatus.PAYMENT_CANCELLED);
	}
	
	public String getStatusName() {
		return statusName;
	}

	private FNPRequestStatus(String statusName) {
		this.statusName = statusName;
	}
	
	public static FNPRequestStatus getStatus(String name){
		return statusMap.get(name);
	}
	
}
